var e = require;
var t = module;
var o = exports;
var n;
function i(e, t) {
    return (i =
        Object.setPrototypeOf ||
        function (e, t) {
            return (e.__proto__ = t), e;
        })(e, t);
}
(o.__esModule = !0), (o.default = void 0);
var a = (function (e) {
    var t, o;
    function n() {
        return e.call(this) || this;
    }
    (o = e), ((t = n).prototype = Object.create(o.prototype)), (t.prototype.constructor = t), i(t, o);
    var a = n.prototype;
    return (
        (a.init = function () {}),
        (a.initAD = function () {}),
        (a.release = function () {}),
        (a.loadBanner = function () {}),
        (a.onBannerLoad = function () {}),
        (a.onBannerError = function () {}),
        (a.onBannerResize = function () {}),
        (a.showBanner = function () {
            var e = {name: "showBanner", data: {}};
            (e = JSON.stringify(e)), lplatform.js2NativeEvent(e);
        }),
        (a.hideBanner = function (e) {
            void 0 === e && (e = !1);
            var t = {name: "closeBanner", data: {}};
            (t = JSON.stringify(t)), lplatform.js2NativeEvent(t);
        }),
        (a.loadInterstitial = function () {}),
        (a.onInterstitialLoad = function () {}),
        (a.onInterstitialError = function () {}),
        (a.onInterstitialClose = function () {}),
        (a.showInterstitial = function () {
            var e = {name: "showChaPing", data: {}};
            (e = JSON.stringify(e)), lplatform.js2NativeEvent(e);
        }),
        (a.hideInterstitial = function () {}),
        (a.showInterstitialVideo = function () {
            console.log("PNative===>>>showRewardedVideo");
            var e = {name: "showVideoChaPing", data: {}};
            (e = JSON.stringify(e)), lplatform.js2NativeEvent(e);
        }),
        (a.createRewardedVideo = function () {}),
        (a.loadRewardedVideo = function () {}),
        (a.onRewardedVideoLoad = function () {}),
        (a.onRewardedVideoError = function () {}),
        (a.onRewardedVideoClose = function () {}),
        (a.showRewardedVideo = function (e) {
            console.log("", "showRewardedVideo"),
                e &&
                    ((window.vcb = e),
                    window.android &&
                        ((window.android.videoRewardCb = function () {
                            lplatform.resumeGame(), e(!0);
                        }),
                        (window.android.videoFailCb = function () {
                            lplatform.resumeGame(), e(!1);
                        })));
            var t = {name: "showvideoAD", data: {}};
            (t = JSON.stringify(t)), lplatform.js2NativeEvent(t), lplatform.pauseGame();
        }),
        (a.resetRewardedVideo = function (e, t) {
            void 0 === e && (e = !1), void 0 === t && (t = !1);
        }),
        (a.shareAppMessage = function () {}),
        (a.canRecord = function () {
            return !1;
        }),
        (a.canShareRecord = function () {
            return !1;
        }),
        (a.startRecord = function () {}),
        (a.onGameRecordStart = function () {}),
        (a.onGameRecordError = function () {}),
        (a.onGameRecordStop = function () {}),
        (a.pauseRecord = function () {}),
        (a.resumeRecord = function () {}),
        (a.stopRecord = function () {}),
        (a.shareRecord = function () {}),
        (a.resetRecord = function () {}),
        (a.shareInnerRecord = function () {}),
        (a.createMoreGameButton = function () {}),
        (a.showFavoriteGuide = function () {}),
        (a.followAccount = function () {}),
        (a.goToGameOrGameList = function () {
            this.env.showMoreGamesModal({
                appLaunchOptions: [],
                success: function success(e) {
                    console.log("success", e.errMsg);
                },
                fail: function fail(e) {
                    console.log("fail", e.errMsg);
                }
            });
        }),
        (a.openAwemeUserProfile = function () {}),
        (a.createMoreGameBanner = function () {}),
        (a.createMoreGamePortal = function () {}),
        (a.analytics = function (e, t) {
            var o = {name: e, data: t};
            lplatform.js2NativeEvent(JSON.stringify(o));
        }),
        (a.showLoading = function () {}),
        (a.hideLoading = function () {}),
        (a.createGameClub = function () {}),
        (a.navigateToMiniProgram = function () {}),
        (a.shareMessageToFriend = function () {}),
        (a.sendMsgToOpenDataProject = function () {}),
        (a.makeShareUI = function (e, t, o, n, i) {
            void 0 === n && (n = 0), void 0 === i && (i = !1), t && t();
        }),
        (a.httpRequest = function (e, t, o, n, i) {
            var a = new XMLHttpRequest();
            (a.timeout = o),
                (a.onreadystatechange = function () {
                    4 == a.readyState &&
                        (a.status >= 200 && a.status < 400
                            ? t(null, a.response, a.responseText)
                            : t(a.status, null, null));
                }),
                a.open(n || "GET", e, !0),
                a.send(i);
        }),
        n
    );
})(((n = e("PWX")) && n.__esModule ? n : {default: n}).default);
(o.default = a), (t.exports = o.default);
